package com.ybkj.daijia.page.encrypt;

import java.util.List;


public class PageEnc<T> {

    private List<T> content;

    private long totalElements;

    private int totalPages;

    private boolean last;

    private boolean first;

    private int number;

    private int size;

    private int numberOfElements;

    public PageEnc(com.ybkj.daijia.page.Page<T> page) {
//		PageEnc<T> p =new PageEnc<T>();
//		p.setContent(page.getContent());
//		p.setTotalElements(page.getTotalElements());
//		p.setTotalPages(page.getTotalPages());
//		p.setLast(page.isLast());
//		p.setFirst(page.isFirst());
//		p.setNumber(page.getNumber());
//		p.setSize(page.getSize());
//		p.setNumberOfElements(page.getNumberOfElements());
        this.content = page.getContent();
        this.totalElements = page.getTotalElements();
        this.totalPages = page.getTotalPages();
        this.last = page.isLast();
        this.first = page.isFirst();
        this.number = page.getNumber();
        this.size = page.getSize();
        this.numberOfElements = page.getNumberOfElements();
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    public long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(long totalElements) {
        this.totalElements = totalElements;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public boolean isLast() {
        return last;
    }

    public void setLast(boolean last) {
        this.last = last;
    }

    public boolean isFirst() {
        return first;
    }

    public void setFirst(boolean first) {
        this.first = first;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getNumberOfElements() {
        return numberOfElements;
    }

    public void setNumberOfElements(int numberOfElements) {
        this.numberOfElements = numberOfElements;
    }


}
	
